/*
	File: d:/gs_users/francois/panzer_2010/data/levels/level_0.nut
	Author: Emmanuel Julien
*/

g_debug_draw_list		<-	{points = [], lines = []}

function	DrawDebugPoint(point)
{
	g_debug_draw_list.points.append(point)
	if (g_debug_draw_list.points.len() > 10)
		g_debug_draw_list.points.remove(0)
}

function	DrawDebugLine(point_a, point_b)
{
	g_debug_draw_list.lines.append([point_a, point_b])
	if (g_debug_draw_list.lines.len() > 10)
		g_debug_draw_list.lines.remove(0)
}

/*!
	@short	Level
	@author	Emmanuel Julien
*/
class	Level extends ScreenBase
{
/*	function	OnUpdate(scene)
	{
		if	(testExitTrigger(scene, "exit_0"))
			status = "exit"
	}
*/

	function	OnRenderUser(scene)
	{
		foreach(point in g_debug_draw_list.points)
			RendererDrawCross(g_render, point)

		foreach(line in g_debug_draw_list.lines)
			RendererDrawLine(g_render, line[0], line[1])
	}
}
